package com.linked.pay.coupon.bean.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @author :dbq
 * @date : 2023/3/6 9:18
 * @description : desc
 */
@Data
@TableName("pay_coupon_info")
public class CouponInfoPO {
    @TableId(value = "coupon_id",type = IdType.ASSIGN_UUID)
    private String couponId;
    @TableField("coupon_name")
    private String couponName;
    @TableField("coupon_type")
    private Integer couponType;
    @TableField("coupon_allcount")
    private Integer couponAllcount;
    @TableField("coupon_sended")
    private Integer couponSended;
    @TableField("coupon_begin")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime couponBegin;
    @TableField("coupon_end")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime couponEnd;
    @TableField("coupon_desc")
    private String couponDesc;
    @TableField("limit_amount")
    private Double limitAmount;
    @TableField("replace_amount")
    private Double replaceAmount;
    @TableField("create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    @TableField("data_status")
    private Integer dataStatus;

}
